Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Goal
This PR adds support for Active Job when not using an existing integration. For example, nothing will change when using Sidekiq as the backend but we can now track exceptions in Active Job's
async
backendWe capture the following metadata automatically for both handled and unhandled exceptions (note some data is not available on certain Rails versions):
job_id
job_name
queue
locale
arguments
provider_job_id
(added in Rails 5)executions
(added in Rails 5)timezone
(added in Rails 6)enqueued_at
(added in Rails 6)The context is set to the job name and queue to match other queue integrations, e.g.
ExampleJob@some_queue
, and the default app type is set to "active job"Testing
Maze Runner tests run against Rails 4, 5 & 6 with a variety of Ruby versions